package com.smart.manager.product.entities.views;

import com.smart.common.entities.core.BaseView;
import com.smart.manager.product.entities.enums.RfidStatus;
import com.smart.manager.product.entities.enums.RfidUseStatus;
import io.ebean.annotation.View;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;


/**
 * 游戏管理 耳标管理
 * @author leo
 * @date 2023/09/19
 */
@Data
@Entity
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@View(name = "product_basic_rfid")
public class BasicRfidView extends BaseView {


    /**
     * 耳标代码
     */
    @Id
    @NotBlank(message = "耳标代码 不能为空")
    @Length(max = 30, message = "耳标代码 不能超过30个字符")
    @ApiModelProperty("蓝牙耳标mac")
    private String beaconMac;

    @ApiModelProperty("耳标名称")
    private String name;

    @ApiModelProperty("耳标在线状态")
    private RfidStatus status;

    @ApiModelProperty("耳标使用状态")
    private RfidUseStatus useStatus;

    @ApiModelProperty("温度")
    private String temperature;

    @ApiModelProperty("运动量")
    private String shake;

}